package gamecode;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.Rectangle;

public class EntityDebugBouy extends Entity {

	private Color bouyColor;
	
	/**
	 * Creates a new EntityDebugBouy
	 * @param c Bouy color
	 */
	public EntityDebugBouy(Color c) {
		bouyColor = c;
	}
	
	/**
	 * Creates a new EntityDebugBouy
	 * @param c Bouy color
	 * @param pos Initial position
	 */
	public EntityDebugBouy(Color c, DPoint pos) {
		bouyColor = c;
		this.setPosition(pos);
	}
	
	public void drawEntity(Graphics g, Rectangle bounds, EntityPlayerShip player) {
		g.setColor(bouyColor);
		g.drawOval((int)(this.getPosition().getX() + (bounds.getWidth()/2 - player.getPosition().getX())), (int)(this.getPosition().getY() + (bounds.getHeight()/2 - player.getPosition().getY())), 5, 5);
	}
}
